home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d3
/
amac33.arc
/
SET12.QM
< prev
next >
Wrap
Text File
|
1991-04-28
|
2KB
|
58 lines
* SET12.QM, v1.2a
*
* @0 - Macro To Get Dos Envirnoment Variable
*
* This QEdit macro shows a technique to access a Dos environment
* variable while editing a file with QEdit. To run, press Alt_0 and the
* variable and it's name will show highlighted on the screen. Press
* 'Enter' to remove from the screen. This macro is based on a
* suggestion how to do this from Tim Farley of SemWare.
*
* Change 'COMSPEC' below to the variable you wish to find. Replacing
* "COMSPEC" altogether with 'pause' line will allow the user to input
* enough letters for the Dos environment variable to be found.
*
* The macro will also run faster if 'C:' below is changed to a ram disk.
*
* See SRCHxx.QM for using Dos environment variables in other macros.
*
* For other macros, see ALLMACRO.INF.
* To BEGIN, just type "START SET" <Enter>. All pertinent files will be
* loaded in the "Ring" for viewing, and SET12.MAC is read.
* Alternatively, type "START SET 0" <Enter> and the disk copies of all
* files in the "Ring" will be loaded ready for editing, saving time.
*
@0 macrobegin
unmarkblock * get ready
DOS "set>c:$" return return * get SET to tempfile
editfile "c:$" return * load tempfile
* find pause return return * input variable to find
find "COMSPEC" return return ** search for COMSPEC **change**
begline dropanchor * go to found begin/start mark
endline * mark it all
copy * get to scrap
killfile quit * kill/quit temp for next time
Find paste Pause Escape * Show variable in Find window
*
* 57 bytes Fri 10-26-1990 00:13:22
* Version History:
*
* 1.0a - Changed documentation
* 1.0b - Changed other file names in series, this is an update.
* 1.1 - Shortened macro
* 1.1a - Modified this file documentation
* 1.2 - Replaced misssing "COMSPEC" line in macro
* - Modified to show environment variable in Find window
* to not change file.
* 1.2a - Modified documentation and added START.BAT.
* Tom Hogshead Wed 10-31-1990